From: Ewan Mellor Date: Wed, 25 Oct 2006 14:01:51 +0000 (+0100) Subject: Print the time to xend-debug.log, when starting or restarting Xend. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15584^2~4 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=9d8bfdc56af19c33d33b49f1ae6e0e9c4ed87322;p=xen.git Print the time to xend-debug.log, when starting or restarting Xend. Signed-off-by: Ewan Mellor --- diff --git a/tools/python/xen/xend/server/SrvDaemon.py b/tools/python/xen/xend/server/SrvDaemon.py index 254c5d6939..baba3c437d 100644 --- a/tools/python/xen/xend/server/SrvDaemon.py +++ b/tools/python/xen/xend/server/SrvDaemon.py @@ -9,6 +9,7 @@ import os import signal import sys import threading +import time import linecache import pwd import re @@ -112,6 +113,8 @@ class Daemon: os.open('/dev/null', os.O_RDWR) os.dup(0) os.open(XEND_DEBUG_LOG, os.O_WRONLY|os.O_CREAT|os.O_APPEND) + print >>sys.stderr, ("Xend started at %s." % + time.asctime(time.localtime())) def start(self, trace=0):